﻿#ifndef FILELISTWIDGET_H
#define FILELISTWIDGET_H

#include "filelistthread.h"

#include <QStandardItemModel>
#include <QWidget>

namespace Ui {
class FileListWidget;
}

class FileListWidget : public QWidget
{
    Q_OBJECT

public:
    explicit FileListWidget(QWidget *parent = nullptr);
    ~FileListWidget();
signals:
    void signal_openDisposeWidget(QString path);
public:
    void slot_clearList();
    void slot_fileList(QList<YFileListInfo> infos);
private slots:
    void on_selDirBtn_clicked();
    void on_fileTableView_doubleClicked(const QModelIndex &index);
    void on_nameFilter_editingFinished();

private:
    void initParam();
    void seriParam();
private:
    Ui::FileListWidget *ui;
    FileListThread fileListThread;
    QStandardItemModel *tableModel;
};

#endif // FILELISTWIDGET_H
